/* /* 智驭安行系统管理平台样式 */

/* 全局样式重置 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
	background: #f5f7fa;
	color: #333;
	line-height: 1.6;
	overflow-x: hidden;
}

/* 加载遮罩 */
.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.loading-content {
	text-align: center;
	color: white;
}

.loading-spinner {
	font-size: 32px;
	animation: spin 1s linear infinite;
	margin-bottom: 16px;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

/* 主布局 */
.admin-layout {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* 顶部导航栏 */
.admin-header {
	height: 64px;
	background: white;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 24px;
	position: relative;
	z-index: 100;
}

.header-left {
	display: flex;
	align-items: center;
	gap: 32px;
}

.logo-section {
	display: flex;
	align-items: center;
	gap: 12px;
}

.logo-container {
	margin-bottom: 30px;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100px;
}

.logo-container img,
.header-logo {
	height: 48px;
	max-width: none;
	width: auto;
	object-fit: contain;
	transition: transform 0.3s;
}

.logo-container img:hover {
	transform: scale(1.08);
}

.system-title {
	font-size: 18px;
	font-weight: 600;
	color: #1f2937;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.breadcrumb-section .el-breadcrumb {
	font-size: 14px;
}

.header-right {
	display: flex;
	align-items: center;
	gap: 20px;
}

.notification-badge {
	cursor: pointer;
}

.notification-badge .el-button {
	font-size: 18px;
	color: #6b7280;
	padding: 8px;
}

.notification-badge .el-button:hover {
	color: #667eea;
	background: rgba(102, 126, 234, 0.1);
}

.user-dropdown {
	cursor: pointer;
}

.user-info {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.user-info:hover {
	background: rgba(102, 126, 234, 0.1);
}

.username {
	font-weight: 500;
	color: #1f2937;
	font-size: 14px;
}

/* 主内容区 */
.admin-main {
	display: flex;
	flex: 1;
	min-height: calc(100vh - 64px);
}

/* 侧边栏 */
.admin-sidebar {
	width: 240px;
	background: white;
	box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
	position: relative;
	transition: width 0.3s ease;
	z-index: 50;
}

.admin-sidebar.collapsed {
	width: 64px;
}

.sidebar-toggle {
	position: absolute;
	top: 16px;
	right: -12px;
	width: 24px;
	height: 24px;
	background: white;
	border: 1px solid #e5e7eb;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-toggle:hover {
	background: #667eea;
	color: white;
	border-color: #667eea;
}

.sidebar-menu {
	height: 100%;
	border: none;
	padding-top: 20px;
}

.sidebar-menu .el-menu-item,
.sidebar-menu .el-submenu__title {
	height: 48px;
	line-height: 48px;
	border-radius: 0 24px 24px 0;
	margin: 2px 12px 2px 0;
	color: #6b7280;
	transition: all 0.3s ease;
}

.sidebar-menu .el-menu-item:hover,
.sidebar-menu .el-submenu__title:hover {
	background: rgba(102, 126, 234, 0.1);
	color: #667eea;
}

.sidebar-menu .el-menu-item.is-active {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.sidebar-menu .el-submenu .el-menu-item {
	margin: 1px 12px 1px 0;
	border-radius: 0 20px 20px 0;
	background: transparent;
}

.sidebar-menu .el-submenu .el-menu-item:hover {
	background: rgba(102, 126, 234, 0.08);
}

/* 内容区域 */
.admin-content {
	flex: 1;
	padding: 24px;
	background: #f5f7fa;
	overflow-y: auto;
}

/* 仪表盘内容 */
.dashboard-content {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* 欢迎卡片 */
.welcome-card {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 32px;
	border-radius: 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.welcome-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="900" cy="100" r="100" fill="rgba(255,255,255,0.1)"/><circle cx="100" cy="900" r="150" fill="rgba(255,255,255,0.05)"/></svg>') no-repeat;
	background-size: cover;
	pointer-events: none;
}

.welcome-info {
	position: relative;
	z-index: 2;
}

.welcome-info h2 {
	font-size: 24px;
	font-weight: 600;
	margin-bottom: 8px;
}

.welcome-info p {
	font-size: 16px;
	opacity: 0.9;
	margin-bottom: 16px;
}

.user-stats {
	display: flex;
	gap: 24px;
}

.stat-item {
	font-size: 14px;
	opacity: 0.8;
}

.welcome-actions {
	position: relative;
	z-index: 2;
	display: flex;
	gap: 12px;
}

.welcome-actions .el-button {
	border-radius: 8px;
	padding: 12px 24px;
	font-weight: 500;
}

/* 天气预报模块样式 */
.weather-module {
	background: white;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	margin-bottom: 24px;
	overflow: hidden;
	position: relative;
}

.weather-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f3f4f6;
}

.weather-header h3 {
	font-size: 18px;
	color: #1f2937;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.weather-header h3 i {
	color: #667eea;
	font-size: 20px;
}

.current-weather {
	display: flex;
	align-items: center;
	gap: 12px;
}

.current-temp {
	font-size: 28px;
	font-weight: 700;
	color: #667eea;
}

.current-desc {
	font-size: 14px;
	color: #6b7280;
	background: #f3f4f6;
	padding: 4px 12px;
	border-radius: 20px;
}

/* 7天天气预报 */
.weather-forecast {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 8px;
	margin-bottom: 24px;
}

.forecast-item {
	background: #f9fafb;
	border: 2px solid transparent;
	border-radius: 12px;
	padding: 16px 8px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.forecast-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.forecast-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
	border-color: rgba(102, 126, 234, 0.3);
}

.forecast-item:hover::before {
	opacity: 1;
}

.forecast-item.active {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-color: #667eea;
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.forecast-item.active::before {
	opacity: 0;
}

.forecast-date {
	margin-bottom: 8px;
	position: relative;
	z-index: 2;
}

.day-name {
	display: block;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 2px;
}

.month-day {
	display: block;
	font-size: 11px;
	opacity: 0.8;
}

.forecast-item.active .month-day {
	opacity: 0.9;
}

.forecast-icon {
	font-size: 24px;
	margin: 8px 0;
	position: relative;
	z-index: 2;
}

.forecast-temps {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 6px;
	position: relative;
	z-index: 2;
}

.temp-max {
	font-size: 14px;
	font-weight: 600;
}

.temp-min {
	font-size: 12px;
	opacity: 0.7;
}

.forecast-desc {
	font-size: 11px;
	opacity: 0.8;
	position: relative;
	z-index: 2;
}

.forecast-item.active .forecast-desc {
	opacity: 0.9;
}

/* 天气详情 */
.weather-details {
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	border-radius: 16px;
	padding: 24px;
	border: 1px solid #e2e8f0;
	position: relative;
	overflow: hidden;
}

.weather-details::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(102, 126, 234, 0.03) 0%, transparent 50%);
	pointer-events: none;
}

.details-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 24px;
	position: relative;
	z-index: 2;
}

.detail-title-section {
	flex: 1;
}

.details-header h4 {
	font-size: 18px;
	color: #1f2937;
	margin: 0 0 12px 0;
	font-weight: 600;
}

.weather-summary {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.main-weather {
	font-size: 24px;
}

.weather-desc {
	font-size: 14px;
	color: #6b7280;
	background: white;
	padding: 4px 12px;
	border-radius: 20px;
	border: 1px solid #e5e7eb;
}

.temp-range {
	font-size: 14px;
	font-weight: 600;
	color: #667eea;
	background: rgba(102, 126, 234, 0.1);
	padding: 4px 12px;
	border-radius: 20px;
}

.refresh-btn {
	color: #6b7280;
	padding: 8px;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.refresh-btn:hover {
	color: #667eea;
	background: rgba(102, 126, 234, 0.1);
}

/* 核心指标 */
.weather-metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
	position: relative;
	z-index: 2;
}

.metric-item {
	background: white;
	padding: 16px;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	border: 1px solid #f1f5f9;
	transition: all 0.3s ease;
}

.metric-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
	border-color: rgba(102, 126, 234, 0.2);
}

.metric-item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.metric-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(102, 126, 234, 0.1);
	font-size: 16px;
	flex-shrink: 0;
}

.metric-content {
	flex: 1;
	min-width: 0;
}

.metric-label {
	display: block;
	font-size: 12px;
	color: #6b7280;
	margin-bottom: 4px;
}

.metric-value {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 6px;
}

.metric-progress {
	width: 100%;
	height: 4px;
	background: #f1f5f9;
	border-radius: 2px;
	overflow: hidden;
}

.progress-bar {
	height: 100%;
	border-radius: 2px;
	transition: width 0.8s ease;
}

/* 生活指数 */
.life-tips {
	margin-bottom: 24px;
	position: relative;
	z-index: 2;
}

.life-tips h5 {
	font-size: 16px;
	color: #1f2937;
	margin: 0 0 16px 0;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}

.life-tips h5 i {
	color: #667eea;
}

.tips-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}

.tip-item {
	background: white;
	padding: 16px;
	border-radius: 12px;
	border: 1px solid #f1f5f9;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 12px;
}

.tip-item:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	border-color: rgba(102, 126, 234, 0.2);
}

.tip-icon {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 14px;
	flex-shrink: 0;
}

.tip-content {
	flex: 1;
	min-width: 0;
}

.tip-name {
	display: block;
	font-size: 13px;
	color: #1f2937;
	font-weight: 500;
	margin-bottom: 2px;
}

.tip-level {
	display: inline-block;
	font-size: 11px;
	padding: 2px 6px;
	border-radius: 10px;
	font-weight: 500;
	margin-bottom: 4px;
}

.tip-level.excellent,
.tip-level.good,
.tip-level.comfortable {
	background: #dcfce7;
	color: #166534;
}

.tip-level.moderate {
	background: #fef3c7;
	color: #92400e;
}

.tip-level.poor,
.tip-level.warm,
.tip-level.strong {
	background: #fecaca;
	color: #991b1b;
}

.tip-desc {
	display: block;
	font-size: 11px;
	color: #6b7280;
	line-height: 1.3;
}

/* 温馨提示 */
.weather-alerts {
	margin-bottom: 20px;
	position: relative;
	z-index: 2;
}

.weather-alerts h5 {
	font-size: 16px;
	color: #1f2937;
	margin: 0 0 16px 0;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}

.weather-alerts h5 i {
	color: #667eea;
}

.alert-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.alert-item {
	background: white;
	padding: 12px 16px;
	border-radius: 8px;
	border-left: 4px solid #e5e7eb;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	line-height: 1.5;
	transition: all 0.3s ease;
}

.alert-item:hover {
	background: #f9fafb;
	transform: translateX(2px);
}

.alert-item i {
	margin-top: 1px;
	flex-shrink: 0;
}

.alert-item.info {
	border-left-color: #3b82f6;
	color: #1e40af;
}

.alert-item.info i {
	color: #3b82f6;
}

.alert-item.warning {
	border-left-color: #f59e0b;
	color: #92400e;
}

.alert-item.warning i {
	color: #f59e0b;
}

.alert-item.success {
	border-left-color: #10b981;
	color: #065f46;
}

.alert-item.success i {
	color: #10b981;
}

/* 月相信息 */
.moon-phase {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 12px;
	padding: 16px;
	color: white;
	position: relative;
	z-index: 2;
}

.moon-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.moon-icon {
	font-size: 24px;
	animation: moonGlow 3s ease-in-out infinite alternate;
}

@keyframes moonGlow {
	from {
		opacity: 0.7;
	}

	to {
		opacity: 1;
	}
}

.moon-details {
	flex: 1;
}

.moon-phase-name {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 4px;
}

.moon-desc {
	display: block;
	font-size: 12px;
	opacity: 0.9;
}

/* 统计卡片网格 */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}

.stat-card {
	background: white;
	padding: 24px;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	display: flex;
	align-items: center;
	gap: 16px;
	transition: all 0.3s ease;
	border-left: 4px solid transparent;
}

.stat-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 20px;
}

.stat-content h3 {
	font-size: 24px;
	font-weight: 700;
	color: #1f2937;
	margin-bottom: 4px;
}

.stat-content p {
	font-size: 14px;
	color: #6b7280;
	margin-bottom: 8px;
}

.stat-trend {
	font-size: 12px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 4px;
}

.stat-trend.up {
	color: #10b981;
}

.stat-trend.down {
	color: #f56c6c;
}

/* 快速链接 */
.quick-links {
	background: white;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quick-links h3 {
	font-size: 18px;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 20px;
}

.links-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 16px;
}

.quick-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px 16px;
	border-radius: 8px;
	background: #f9fafb;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
	position: relative;
	border: 1px solid #e5e7eb;
}

.quick-link:hover {
	background: rgba(102, 126, 234, 0.1);
	transform: translateY(-2px);
	border-color: #667eea;
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.quick-link i {
	font-size: 24px;
	color: #667eea;
	margin-bottom: 8px;
}

.quick-link span {
	font-size: 14px;
	color: #374151;
	font-weight: 500;
	margin-bottom: 8px;
}

/* 最新动态 */
.activity-feed {
	background: white;
	padding: 24px;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.activity-feed h3 {
	font-size: 18px;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 20px;
}

.activity-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.activity-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px;
	border-radius: 8px;
	transition: background 0.3s ease;
}

.activity-item:hover {
	background: #f9fafb;
}

.activity-icon {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #f3f4f6;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.activity-content p {
	font-size: 14px;
	color: #374151;
	margin-bottom: 4px;
}

.activity-time {
	font-size: 12px;
	color: #9ca3af;
}

/* 页面占位内容 */
.page-content {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 400px;
}

.page-placeholder {
	text-align: center;
	color: #6b7280;
}

.page-placeholder i {
	font-size: 64px;
	margin-bottom: 16px;
	display: block;
	color: #d1d5db;
}

.page-placeholder h3 {
	font-size: 20px;
	margin-bottom: 8px;
	color: #374151;
}

.page-placeholder p {
	font-size: 14px;
	margin-bottom: 24px;
}

/* 通知抽屉 */
.notification-list {
	padding: 16px;
}

.notification-item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 16px 0;
	border-bottom: 1px solid #f3f4f6;
}

.notification-item:last-child {
	border-bottom: none;
}

.notification-content h4 {
	font-size: 14px;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 4px;
}

.notification-content p {
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 8px;
	line-height: 1.5;
}

.notification-time {
	font-size: 12px;
	color: #9ca3af;
}

/* Element UI 样式覆盖 */
.el-menu {
	border-right: none;
}

.el-breadcrumb__item:last-child .el-breadcrumb__inner {
	color: #667eea;
	font-weight: 500;
}

.el-dropdown-menu {
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.el-button--primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
}

.el-button--primary:hover {
	background: linear-gradient(135deg, #5a67d8 0%, #6d4c98 100%);
}

.el-badge__content {
	background: #f56c6c;
	border: none;
	font-size: 10px;
}

.el-drawer {
	border-radius: 16px 0 0 16px;
}

.el-drawer__header {
	padding: 20px 24px;
	border-bottom: 1px solid #f3f4f6;
	margin-bottom: 0;
}

/* 动画效果 */
.fade-enter-active,
.fade-leave-active {
	transition: opacity 0.3s ease;
}

.fade-enter,
.fade-leave-to {
	opacity: 0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
	.stats-grid {
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	}

	.weather-forecast {
		grid-template-columns: repeat(4, 1fr);
		gap: 12px;
	}

	.forecast-item {
		padding: 14px 8px;
	}

	.weather-metrics {
		grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	}

	.tips-grid {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}
}

@media (max-width: 768px) {
	.admin-header {
		padding: 0 16px;
	}

	.header-left {
		gap: 16px;
	}

	.system-title {
		display: none;
	}

	.admin-sidebar {
		position: fixed;
		left: -240px;
		top: 64px;
		height: calc(100vh - 64px);
		z-index: 1000;
	}

	.admin-sidebar.show {
		left: 0;
	}

	.admin-content {
		padding: 16px;
	}

	.welcome-card {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.welcome-actions {
		width: 100%;
	}

	.welcome-actions .el-button {
		flex: 1;
	}

	.stats-grid {
		grid-template-columns: 1fr;
	}

	.links-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.user-stats {
		flex-direction: column;
		gap: 8px;
	}

	.weather-module {
		padding: 16px;
	}

	.weather-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.weather-forecast {
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
	}

	.forecast-item {
		padding: 12px 6px;
	}

	.forecast-icon {
		font-size: 20px;
	}

	.current-temp {
		font-size: 24px;
	}

	.weather-details {
		padding: 16px;
	}

	.details-header {
		flex-direction: column;
		gap: 12px;
	}

	.weather-summary {
		order: 2;
	}

	.refresh-btn {
		align-self: flex-end;
		order: 1;
	}

	.weather-metrics {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.tips-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.tip-item {
		padding: 12px;
	}
}

@media (max-width: 480px) {
	.admin-content {
		padding: 12px;
	}

	.welcome-card {
		padding: 20px;
	}

	.stat-card {
		padding: 16px;
	}

	.quick-links,
	.activity-feed {
		padding: 16px;
	}

	.links-grid {
		grid-template-columns: 1fr;
	}

	.weather-forecast {
		grid-template-columns: repeat(2, 1fr);
	}

	.forecast-item {
		padding: 10px 4px;
	}

	.day-name {
		font-size: 11px;
	}

	.month-day {
		font-size: 10px;
	}

	.forecast-icon {
		font-size: 18px;
		margin: 6px 0;
	}

	.temp-max {
		font-size: 13px;
	}

	.temp-min {
		font-size: 11px;
	}

	.forecast-desc {
		font-size: 10px;
	}

	.weather-details {
		padding: 12px;
	}

	.details-header h4 {
		font-size: 16px;
	}

	.weather-summary {
		flex-wrap: wrap;
		gap: 8px;
	}

	.main-weather {
		font-size: 20px;
	}

	.weather-desc,
	.temp-range {
		font-size: 12px;
		padding: 3px 8px;
	}

	.metric-item {
		padding: 12px;
	}

	.metric-icon {
		width: 32px;
		height: 32px;
		font-size: 14px;
	}

	.metric-value {
		font-size: 13px;
	}

	.life-tips h5,
	.weather-alerts h5 {
		font-size: 14px;
	}

	.tip-item {
		padding: 10px;
		gap: 8px;
	}

	.tip-icon {
		width: 28px;
		height: 28px;
		font-size: 12px;
	}

	.tip-name {
		font-size: 12px;
	}

	.tip-desc {
		font-size: 10px;
	}

	.alert-item {
		padding: 10px 12px;
		font-size: 12px;
		gap: 8px;
	}

	.moon-phase {
		padding: 12px;
	}

	.moon-icon {
		font-size: 20px;
	}

	.moon-phase-name {
		font-size: 13px;
	}

	.moon-desc {
		font-size: 11px;
	}
}

/* 深色模式支持（可选） */
@media (prefers-color-scheme: dark) {
	body {
		background: #111827;
		color: #f9fafb;
	}

	.admin-header,
	.admin-sidebar,
	.stat-card,
	.quick-links,
	.activity-feed,
	.weather-module {
		background: #1f2937;
		color: #f9fafb;
	}

	.system-title {
		color: #f9fafb;
	}

	.weather-details {
		background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
		border-color: #4b5563;
	}

	.metric-item,
	.tip-item,
	.alert-item {
		background: #374151;
		border-color: #4b5563;
	}

	.weather-desc {
		background: #374151;
		border-color: #4b5563;
		color: #d1d5db;
	}
}

.login-container {
	display: flex;
	width: 100%;
	max-width: 1100px;
	/* 稍微收窄，避免太宽 */
	min-height: 520px;
	background: white;
	border-radius: 16px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	position: relative;
	z-index: 1;
	animation: slideUp 0.6s ease-out;
	margin: 0 auto;
	/* 居中 */
}

.login-banner {
	flex: 0 0 40%;
	/* 左侧占40% */
	padding: 40px 40px;
}

.login-form {
	flex: 0 0 60%;
	/* 右侧占60% */
	padding: 60px 60px;
}

/* 天气图标样式 */
.weather-sunny {
	color: #f59e0b;
}

.weather-cloudy {
	color: #6b7280;
}

.weather-rainy {
	color: #3b82f6;
}

.weather-snowy {
	color: #93c5fd;
}

.weather-foggy {
	color: #9ca3af;
}